package com.z8fz.admin.security.action;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class UserAction extends ActionSupport {
	
	
	
	public String login(){
		if(username==null)
			username="";
		if(password==null)
			password="";
		if(username.equals("admin")&&password.equals("369")){
			ActionContext.getContext().getSession()
					.put("isLogin","admin");
			return SUCCESS;
		}else
			return "login";	
	}
	
	
	
	private String username;
	private String password;
	public String getusername() {
		return username;
	}
	public void setusername(String username) {
		this.username = username;
	}
	public String getpassword() {
		return password;
	}
	public void setpassword(String password) {
		this.password = password;
	}
	

}
